package com.lq.ecoldchain.ui.goodstype

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.lq.ecoldchain.R
import com.lq.ecoldchain.entity.GoodsType

/*
*2019/1/10 0010  14:40
*function by lq
*/
class GoodsItemRecyclerAdapter(list:List<GoodsType>):BaseQuickAdapter<GoodsType,BaseViewHolder>(R.layout.layout_goods_item_content,list){
    override fun convert(helper: BaseViewHolder?, item: GoodsType?) {
        helper?.setText(R.id.carTypeContentTv,item?.name)
        helper?.addOnClickListener(R.id.goodItemContentLL)
    }

}